# -*-coding=UTF-8 -*-

__author__ = 'tcw'
__birth__ = '2018/4/18'

import os
import json


def getAppConf():
    base_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
    target_path = os.path.join(base_path, 'conf/conf.json')
    ret = None
    try:
        f = file(target_path)
        ret = json.load(f)
    except Exception, e:
        print str(e)
    return ret
